package com.lmk.mkcc.feign;

import com.lmk.mkcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course",fallbackFactory = CourseServiceFallbackFactory.class)
public interface CourseService {
    // 根据courseIds查询数据，返回给前端确认订单页面
    @RequestMapping(value = "/course/info/{courseIds}",method = RequestMethod.GET)
    JSONResult getinfo(@PathVariable("courseIds") String courseIds);

    @RequestMapping(value = "/course/{id}",method = RequestMethod.GET)
    public JSONResult get(@PathVariable("id")Long id);
}
